#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @Time: 2022/9/16 1:34
# @Author: 王思淇
# @Email: xxx@gmail.com
# @File：architecture_page.py


from selenium.webdriver.common.by import By
from pages.base_page import BasePage
from config.config import HOST

class AddUser(BasePage):
    """组织架构页面类"""
    url = "http://{}/crm/index.php?m=user".format(HOST)
    add_post_locator = (By.XPATH, '//*[@id="user_form"]/div[1]/div/a[3]')  # 添加用户

    def click_add_post(self):
        self.driver.find_element(*self.add_post_locator).click()